﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace USMCdotNET
{
    public static class InfoEvent
    {
        static internal void Error()
        {
            if (ErrorEvent != null)
                ErrorEvent();
        }
        static internal void OK()
        {
            if (OKEvent != null)
                OKEvent();
        }
        static event Action ErrorEvent;
        static event Action OKEvent;
        public static event Action ErEvent
        {
            add
            {
                ErrorEvent += value;
            }
            remove
            {
                ErrorEvent -= value;
            }
        }
        public static event Action okEvent
        {
            add
            {
                OKEvent += value;
            }
            remove
            {
                OKEvent -= value;
            }
        }
    }
}